package serverside;

import org.junit.After;
import org.junit.AfterClass;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 *
 * @author Sweelam
 */
public class ATMTest {
    
    public ATMTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of separate method, of class ATM.
     */
    @Test
    public void testSeparate() 
    {
        System.out.println("separate");
        String x = "hash";
        String[] expResult = null;
        String[] result = ATM.separate(x);
        assertArrayEquals(expResult, result);
        assertNotNull(result);
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of initializeStreams method, of class ATM.
     */
    @Test(expected = NullPointerException.class)
    public void testInitializeStreams() 
    {
        System.out.println("initializeStreams");
        ATM instance = null;
        instance.initializeStreams();
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of initializeMember method, of class ATM.
     */
    @Test(expected =  NullPointerException.class)
    public void testInitializeMember() 
    {
        System.out.println("initializeMember");
        ATM instance = null;
        instance.initializeMember();
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of run method, of class ATM.
     */
    @Test(expected =  NullPointerException.class)
    public void testRun() 
    {
        System.out.println("run");
        ATM instance = null;
        instance.run();
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of authenticateUser method, of class ATM.
     */
    @Test(expected =  NullPointerException.class)
    public void testAuthenticateUser() 
    {
        System.out.println("authenticateUser");
        ATM instance = null;
        instance.authenticateUser();
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of performTransactions method, of class ATM.
     */
    @Test(expected =  NullPointerException.class)
    public void testPerformTransactions() 
    {
        System.out.println("performTransactions");
        ATM instance = null;
        instance.performTransactions();
        // TODO review the generated test code and remove the default call to fail.
    }

    /**
     * Test of createTransaction method, of class ATM.
     */
    @Test(expected =  NullPointerException.class)
    public void testCreateTransaction() 
    {
        System.out.println("createTransaction");
        String type = "";
        ATM instance = null;
        Transaction expResult = null;
        Transaction result = instance.createTransaction(type);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
    }
}
